package com.tanhua.dubbo.api;

import com.tanhua.model.domain.Question;

/**
 * Created by Fausto on 2021/9/27 19:44
 */
public interface QuestionApi {
    /**
     * 根据id查询
     * @param userId
     * @return
     */
    Question findByUserId(Long userId);

    /**
     * 保存陌生人问题
     * @param question
     */
    void save(Question question);

    /**
     * 更新陌生人问题
     * @param question
     */
    void update(Question question);
}
